package com.wang.springframework.test.bean;

import java.util.HashMap;
import java.util.Map;

/**
 * @author wangjianhua
 * @Description
 * @date 2021/8/25/025 17:09
 **/
public class UserDao {

    private static Map<String,String> hashMap = new HashMap<>();

    static {
        hashMap.put("10001","tom");
        hashMap.put("10002","john");
        hashMap.put("10003","betty");
    }

    public String queryUsername(String uId){
        return hashMap.get(uId);
    }
}
